<script>
	import store from '@/store';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	export default {
		methods:{
			...mapMutations(['login']),
		},
		onLaunch: function() {
			console.log('App Launch')
			console.log('App Launch')
			let _this = this
			let unserInfo = uni.getStorageSync("userInfo")
			console.log('============='+JSON.stringify(unserInfo))
			if (unserInfo != '') {
				//通过token验证用户信息是否过期
				let userInfo = uni.getStorageSync('userInfo');
				_this.login(userInfo)
				console.log("结束")
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "/common/zcm-main.css";
	@import "/common/animate.css";	
</style>
